package game.actor
{
	import engine.asset.*;
	import game.messages.abilities.*;
	import game.messages.gamedata.*;
	import game.network.*;
	
	public class RxAbilitiesForPlayer extends RxAbilities
	{
		private static var s_skillTreeMap:Object;
		private static var s_classTrees:Array;
		
		public function RxAbilitiesForPlayer(playerIndex:int)
		{
			super(playerIndex);
			if (!s_skillTreeMap)
			{
				InitializeSkillTreeData();
			}
		}
		
		public static function InitializeSkillTreeData() : void
		{
			
		}
		
		public function GetActionTypeAtIndex(index:int) : uint
		{
			if (m_abilitiesStateMessage == null || index < 0 || index >= m_abilitiesStateMessage.actionBar.length)
			{
				return RxAbilities_ActionBarEntry.TYPE_INVALID;
			}
			return m_abilitiesStateMessage.actionBar[index].type;
		}
		
		public function GetActionNameAtIndex(key:int) : String
		{
			if (m_abilitiesStateMessage == null || key < 0 || key >= m_abilitiesStateMessage.actionBar.length)
			{
				return null;
			}
			var action:* = m_abilitiesStateMessage.actionBar[key];
			return action.type != RxAbilities_ActionBarEntry.TYPE_INVALID ? (action.actionName) : (null);
		}
	}
}